﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GKQC.DbHelper.AppViews
{
    /// <summary>
    /// API请求参数
    /// </summary>
    [Serializable]
    [Description("API请求参数")]
    public class QueryParam
    {
        public QueryParam() { }

        public QueryParam(string formName, string userCode, string password, string onlineId, object data) 
        {
            this.FormName = formName;
            this.UserCode = userCode;
            this.Password = password;
            this.OnlineId = onlineId;
            this.Data = data;
        }

        /// <summary>
        /// 程序代号
        /// </summary>
        [Description("程序代号")]
        public string FormName { get; set; }
        /// <summary>
        /// 用户代号
        /// </summary>
        [Description("用户代号")]
        public string UserCode { get; set; }
        /// <summary>
        /// 用户代号
        /// </summary>
        [Description("用户密码")]
        public string Password { get; set; }
        /// <summary>
        /// 用户在线GUID(登录时获取)， 调动登录API时来存用户密码
        /// </summary>
        [Description("用户在线GUID")]
        public string OnlineId { get; set; }
        /// <summary>
        /// 数据
        /// </summary>
        [Description("数据")]
        public object Data { get; set; }

        /// <summary>
        /// 程序版本
        /// </summary>
        [Description("程序版本")]
        public string AppVersion { get; set; }
    }
}
